package jmine.tec.web.servlet.rest.exception;

/**
 * Exception para erros de http
 * 
 * @author takeshi
 */
public class HttpErrorException extends Exception {

    private static final long serialVersionUID = -8071144584312083424L;

    private final int errorCode;

    /**
     * C'tor
     * 
     * @param errorCode int o erro http
     * @param message String a mensagem
     */
    public HttpErrorException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    /**
     * @return the errorCode
     */
    public int getErrorCode() {
        return this.errorCode;
    }

}
